using System;
using InfoJetSoft.Service.Entity;

namespace InfoJetSoft.Service.ManagedCode
{
	/// <summary>
	/// Summary description for VersionUpgradeEvent.
	/// </summary>
	public class VersionUpgradeEvent : Microsoft.Office.Interop.InfoPath.SemiTrust.VersionUpgradeEvent 
	{
		private Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument xDocument;
		private bool returnStatus;
		private Form form = null;
		private VersionCode version = null;

		public VersionUpgradeEvent( Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument xDoc, Form frm, VersionCode ver )
		{
			this.xDocument = xDoc;
			this.form = frm;
			this.version = ver;
		}

		public Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument XDocument 
		{ 
			get
			{
				return this.xDocument;
			}
		}

		public bool ReturnStatus 
		{ 
			get
			{
				return this.returnStatus;
			}

			set
			{
				this.returnStatus = value;
			}

		}

		public string DocumentVersion 
		{ 
			get
			{
				return this.version.Value();
			}
		}

		public string SolutionVersion 
		{ 
			get
			{
				return this.form.Manifest.SolutionVersion.Value();
			}
		}

	}
}
